﻿@model IEnumerable<ArticleIndexViewModel>
@{
    ViewData["Title"] = "索引";
}
@section PYhead{
    <link href="~/css/AR-Index.css" type="text/css" rel="stylesheet">
}
<div id="searcher">
        <div id="topbar-ar">
            <a asp-action="Index" asp-controller="Home"><p class="top-l">返回首页</p></a>
            <p class="artop-item-1">索引</p>
            <partial name="_LoginPartical" />
        </div>
        <div id="search-bar">
            <a asp-action="Index" asp-controller="Home"><p class="top-l">返回首页</p></a>
            <partial name="_LoginPartical" />
        </div>
        <div id="searcher-son">
            <form asp-action="ArticleSearch" asp-controller="Articles" method="post">
                <input class="search-in" name="searchString" spellcheck="false" placeholder="搜索你喜欢的内容" type="search">
                <input class="search-cli" value="搜索" type="submit">
            </form>
        </div>
    </div>
<div id="ar-list">
    @foreach (var u in Model)
    {
        <div class="ar-son">
            <a asp-action="ArticleDetail" asp-route-id="@u.AId">
                <img class="ar-son-pic" src="@u.ArticlePicture">
                <div class="title-inf">
                    <p class="s-title">@u.Title</p><br />
                    <p class="s-intrduction">@u.Introduce</p>
                </div>
            </a>
        </div>
    }
</div>